<template>
	<view class="privacy">
		<view class="content" v-html='thumb'></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				thumb:'',
			};
		},
		onShow(){
			this.initData();
		},
		onShareAppMessage() {
			this.tool.monitor();
			return {
				title:'加一精选',
				path:'/pages/seller',
				imageUrl:'https://zl-tuangou.oss-cn-qingdao.aliyuncs.com/cMini/logo.png',
				desc:'这里有众多优质好物等您来选择',
			} 
		},
		onShareTimeline() {
			this.tool.monitor();
			let share = {
				title:'加一精选',
				path:'/pages/seller',
				imageUrl:'https://zl-tuangou.oss-cn-qingdao.aliyuncs.com/cMini/logo.png',
				desc:'这里有众多优质好物等您来选择',
			}
			return share;
		},
		methods:{
			initData(){
				this.tool.getData('/api/mall/returnYinsi',{}).then(res=>{
					if(res){
						this.thumb = res;
					}
				}).catch(err=>{
					console.log(err);
				})
			}
		}
	}
</script>

<style lang="scss">
	page{
		background:white;
	}
	.privacy{
		width:100%;
		padding: 24rpx 3%;
		box-sizing: border-box;
	}
</style>
